
<style>
.r{margin-top:38px;width: 380px;}
.register{margin-top:128px;width: 460px;}
</style>
<div class="register-container container" style="background:#00c568 url( {{tomedia(pagedata.setting.login_bg) || '../core/resource/images/bg-login.png'}}) no-repeat;">
    <div class="clearfix" style="margin-right:20px">
        <div class="register r">
            <form action="" method="post" role="form" id="form1">
                <a href="/index.php" class="login-logo">
					<img src="{{pagedata.llogo || '../core/resource/images/ng-logo.png'}}">
                </a>
				<div class="form-group" ng-show="pagedata.show_choose">
					<label style="margin-bottom:0">登陆方式</label>
					<div>
						<div class="radio radio-inline">
							<label>
								<input type="radio" value="1" ng-model="pagedata.item.login_type"/>账号密码登陆
							</label>
						</div>
						<div class="radio radio-inline">
							<label>
								<input type="radio" value="2"  ng-model="pagedata.item.login_type"/>手机验证码登陆
							</label>
						</div>
					</div>
				</div>
				<div ng-show="pagedata.item.login_type==1">
				
					<div class="form-group">
						<label for="username">账号：</label>
						<input type="text" ng-model="pagedata.item.username" placeholder="输入您的账号" class="form-control ">
					</div>
					<div class="form-group">
						<label for="password">密码：</label>
						<input type="password" ng-model="pagedata.item.password" placeholder="输入您的密码" class="form-control ">
					</div>

				
				</div>
				<div ng-show="pagedata.item.login_type==2">
					<div class="form-group">
						<label for="username">手机号：</label>
						<input type="text" ng-model="pagedata.item.mobile" placeholder="输入您的账号" class="form-control ">
					</div>
					<div class="form-group input-group">
							<div class="input-group-addon"><i class="fa fa-info"></i></div>
							<input ng-model="pagedata.item.smscode" class="form-control" style="width:110px;" placeholder="请输入验证码">
							<a class="jy-btn jy-btn-default" href="javascript:;" id="smscode" ng-click="tool.mobile_code(pagedata.item.mobile,'smscode')" style="text-decoration: none;margin:2px 4px">发送验证码</a>
					</div>
				</div>
				<div class="form-group input-group" ng-show="pagedata.setting.image_code">
						<div class="input-group-addon"><i class="fa fa-info"></i></div>
						<input ng-model="pagedata.item.code" class="form-control" style="width:110px;" placeholder="请输入验证码">
						<a href="javascript:;" id="code" ng-click="code_image('imgverify')" style="text-decoration: none"><img id="imgverify" src="" style="height:34px;" title="点击图片更换验证码"/> 换一张</a>
				</div>
				<div class="form-group">
					<div ng-init="code_image('imgverify')" id="submit" style="text-align:center;padding-top:7px;" ng-click="post(pagedata.item,'login')" class="login-btn">登录平台</div>
				</div>
            </form>
        </div>
    </div>
</div>